﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TransposeNotes
{
    public partial class Row : UserControl
    {
        private readonly TextBox[] cells;
        public Row()
        {
            InitializeComponent();
            cells = Enumerable.Range(1, 8).Select(i => (TextBox)this.Controls["Cell" + i]).ToArray();
        }

        public void UpdateRow(string[] keys)
        {
            labelRow1.Text = keys[0];
            for (int i = 0; i < keys.Length; i++)
            {
                cells[i].Text = keys[i];
            }
        }
    }
}
